import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[] array = {1,2,3};
        int[] b = Arrays.copyOf(array,2*array.length);
        System.out.println(Arrays.toString(b));
    }
}
